package edu.guet.server.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import edu.guet.server.model.TestQuestion;
import edu.guet.server.service.TestQuestionService;
import edu.guet.server.utils.ResultAPI;

@RestController
@RequestMapping("/testQuestion")
public class TestQuestionController {
    @Autowired
    TestQuestionService testQuestionService;

    @RequestMapping("/setTestQuestion")
    public ResultAPI setTestQuestion(@RequestBody TestQuestion testQuestion){
        return testQuestionService.setTestQuestion(testQuestion);
    }

}
